﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Modularity;
using Volo.Abp.MultiTenancy;
using Volo.Abp.SqlSugarCore;
using Volo.Abp.SqlSugarCore.SqlSugarFactory;
using Volo.Abp.SqlSugarCore.Configs;

namespace TianShu.SysParameterSetting.DAL.Abstracts
{
    [DependsOn(
        typeof(TianShuSqlSugarCoreModule),
        typeof(AbpMultiTenancyModule)
        )]
    public class TianShuSysParameterSettingDALAbStractsModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {

            context.Services.AddSqlSugarRepositories(typeof(TianShuSysParameterSettingDALAbStractsModule).Assembly);

            Configure<SugarAutoGeneratorTableOptions>(opt =>
            {
                opt.Add(typeof(TianShuSysParameterSettingDALAbStractsModule));
            });

        }
    }
}
